#ifndef LOGGER_H
#define LOGGER_H

#include <string>
#include <fstream>

namespace abnormal
{
    
    class Logger
    {
    public:
        Logger();
        ~Logger();
        Logger(const std::string & filename);
        
        void write(const std::string & text);
        void write(const std::string & parent, const std::string & text);
        
    private:
        std::ofstream out;
    };
    
    Logger & log();
    
}
#endif
